/**********************************************************************************
 *@file    : mid_Cfg.c 
 *@brief   : can ???? source file
 *@author  : mcu
 *@version : Ver 1.1
 *@data    : 2018-03-23
 *@note    : Copyright(c) 2018 JJI. All rights reserved.
 ***********************************************************************************/
/* Includes ------------------------------------------------------------------*/

#include "can_Cfg.h"
#include "mid_can.h"

/* Private define ------------------------------------------------------------*/

#define	CAN0_RX_BUFF_MAX		0x40
#define	CAN0_TX_BUFF_MAX		0x20//0x10
static struct_canMsg_t			can0_RxBuff[CAN0_RX_BUFF_MAX];
static struct_canMsg_t			can0_TxBuff[CAN0_TX_BUFF_MAX];


/* Private variables ---------------------------------------------------------*/

/* Private functions ---------------------------------------------------------*/
uint32_t sg_can0FilterMaskIdList[] =
{
    DIAG_PHYS,	
	DIAG_FUNC,
	0x3AE, 
	0x2C0,
	0x5F0,
	0x39C,
	0xA8,
	0x313,
	0x12B,
	0x000 // end flag "Not allowed to delete"
};
/*! can0 configuration structure */
const can_user_config_t can0_InitConfig =
{
//    {
        //.rxCallBack           = NULL,//CANRxCallbackFun,
        .rxBuff             = can0_RxBuff,
        .rxBuffSize         = CAN0_RX_BUFF_MAX,

        //.txCallBack           = NULL,
        .txBuff             = can0_TxBuff,
        .txBuffSize         = CAN0_TX_BUFF_MAX,

        //.wakeUpCallBack       = NULL,//CANRxWakeUpMsg,
        //.busOffCallBack       = NULL,//midCan0BusOffHandle,
//    },
};

